package rrs;

public class TransactItem {
	private String transactType = "";
	private String receiptId;
	private double purchasedPrice;
	private String productId;
	private String productName;
	private int quantity;
    private String description;

	public String getTransactionType() {                               
		return transactType;
	}
	public void setTransactionType(String transactionType) {
		this.transactType = transactionType;
	}
        public String getReceiptId() {
		return receiptId;
	}
	public void setReceiptId(String receiptId) {
		this.receiptId = receiptId;
	}
	public double getPurchasedPrice() {
		return purchasedPrice;
	}
	public void setPurchasedPrice(double purchasedPrice) {
		this.purchasedPrice = purchasedPrice;
	}
	public String getProductId() {
		return productId;
	}
	public void setProductId(String productId) {
		this.productId = productId;
	}
        public String getProductName() {
		return productName;
	}
	public void setProductName(String productName) {
		this.productName = productName;
	}
	public int getQuantity() {
		return quantity;
	}
	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}
        public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
        }
 
    public TransactItem clone()
    {
        TransactItem newTranItem = new TransactItem();
        
        newTranItem.transactType = this.transactType;
        newTranItem.setReceiptId(this.receiptId);
        newTranItem.setPurchasedPrice(this.purchasedPrice);
        newTranItem.setProductId(this.productId);
        newTranItem.setProductName(this.productName);
        newTranItem.setQuantity(this.quantity);
        newTranItem.setDescription(this.description);
        

        return newTranItem;
   }	
}